<div class="requisitos view">
	<div class="row">
		<div class="col-md-12">
			<div class="page-header">
				<h1><?php echo __('Requisito'); ?></h1>
			</div>
		</div>
	</div>

	<div class="row">

		<div class="col-md-3">
			<div class="actions">
				<div class="panel panel-default">
					<div class="panel-heading">Menu</div>
						<div class="panel-body">
							<ul class="nav nav-pills nav-stacked">
									<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-edit"></span>&nbsp&nbsp;Editar Requisito'), array('action' => 'edit', $requisito['Requisito']['id']), array('escape' => false)); ?> </li>
		<li><?php echo $this->Form->postLink(__('<span class="glyphicon glyphicon-remove"></span>&nbsp;&nbsp;Deletar Requisito'), array('action' => 'delete', $requisito['Requisito']['id']), array('escape' => false), __('Você tem certeza que que deseja deletar %s?', $requisito['Requisito']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('<span class="glyphicon glyphicon-list"></span>&nbsp&nbsp;Requisitos'), array('action' => 'index'), array('escape' => false)); ?> </li>
							</ul>
						</div><!-- end body -->
				</div><!-- end panel -->
			</div><!-- end actions -->
		</div><!-- end col md 3 -->

		<div class="col-md-9">			
			<table cellpadding="0" cellspacing="0" class="table table-striped">
				<tbody>
<tr>
		<th><?php echo __('Descricao'); ?></th>
		<td>
			<?php echo h($requisito['Requisito']['descricao']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Voz'); ?></th>
		<td>
			<?php echo h($requisito['Requisito']['voz']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Data Inicio'); ?></th>
		<td>
			<?php echo h($requisito['Requisito']['data_inicio']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Data Final'); ?></th>
		<td>
			<?php echo h($requisito['Requisito']['data_final']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Data Elicitacao'); ?></th>
		<td>
			<?php echo h($requisito['Requisito']['data_elicitacao']); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Escopo'); ?></th>
		<td>
			<?php echo $this->Html->link($requisito['Escopo']['nome'], array('controller' => 'escopos', 'action' => 'view', $requisito['Escopo']['id'])); ?>
			&nbsp;
		</td>
</tr>
<tr>
		<th><?php echo __('Departamento'); ?></th>
		<td>
			<?php echo $this->Html->link($requisito['Departamento']['nome'], array('controller' => 'departamentos', 'action' => 'view', $requisito['Departamento']['id'])); ?>
			&nbsp;
		</td>
</tr>
				</tbody>
			</table>

		</div><!-- end col md 9 -->

	</div>
</div>

<div class="related row">
	<div class="col-md-12">
	<h3><?php echo __('Dependencia'); ?></h3>
	<?php if (!empty($requisito['Dependencium'])): ?>
	<table cellpadding = "0" cellspacing = "0" class="table table-striped">
	<thead>
	<tr>
		<th><?php echo __('Requisito 1'); ?></th>
		<th><?php echo __('Requisito 2'); ?></th>
		<th class="actions"></th>
	</tr>
	<thead>
	<tbody>
	<?php foreach ($requisito['Dependencium'] as $dependencium): ?>
		<tr>
			<td><?php echo $dependencium['requisito_id']; ?></td>
			<td><?php echo $dependencium['requisito_id1']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-search"></span>'), array('controller' => 'dependencia', 'action' => 'view', $dependencium['id']), array('escape' => false)); ?>
				<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-edit"></span>'), array('controller' => 'dependencia', 'action' => 'edit', $dependencium['id']), array('escape' => false)); ?>
				<?php echo $this->Form->postLink(__('<span class="glyphicon glyphicon-remove"></span>'), array('controller' => 'dependencia', 'action' => 'delete', $dependencium['id']), array('escape' => false), __('Você tem certeza que que deseja deletar %s?', $dependencium['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</tbody>
	</table>
<?php endif; ?>

	<div class="actions">
		<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-plus"></span>&nbsp;&nbsp;Adicionar Dependência'), array('controller' => 'dependencia', 'action' => 'add'), array('escape' => false, 'class' => 'btn btn-default')); ?> 
	</div>
	</div><!-- end col md 12 -->
</div>
<div class="related row">
	<div class="col-md-12">
	<h3><?php echo __('Impactos'); ?></h3>
	<?php if (!empty($requisito['Impacto'])): ?>
	<table cellpadding = "0" cellspacing = "0" class="table table-striped">
	<thead>
	<tr>
		<th><?php echo __('Descricao'); ?></th>
		<th><?php echo __('Analise Impacto'); ?></th>
		<th><?php echo __('Data Analise'); ?></th>
		<th class="actions"></th>
	</tr>
	<thead>
	<tbody>
	<?php foreach ($requisito['Impacto'] as $impacto): ?>
		<tr>
			<td><?php echo $impacto['descricao']; ?></td>
			<td><?php echo $impacto['analise_impacto']; ?></td>
			<td><?php echo $impacto['data_analise']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-search"></span>'), array('controller' => 'impactos', 'action' => 'view', $impacto['id']), array('escape' => false)); ?>
				<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-edit"></span>'), array('controller' => 'impactos', 'action' => 'edit', $impacto['id']), array('escape' => false)); ?>
				<?php echo $this->Form->postLink(__('<span class="glyphicon glyphicon-remove"></span>'), array('controller' => 'impactos', 'action' => 'delete', $impacto['id']), array('escape' => false), __('Você tem certeza que que deseja deletar %s?', $impacto['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</tbody>
	</table>
<?php endif; ?>

	<div class="actions">
		<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-plus"></span>&nbsp;&nbsp;New Impacto'), array('controller' => 'impactos', 'action' => 'add'), array('escape' => false, 'class' => 'btn btn-default')); ?> 
	</div>
	</div><!-- end col md 12 -->
</div>
<div class="related row">
	<div class="col-md-12">
	<h3><?php echo __('Requisitos Tratados'); ?></h3>
	<?php if (!empty($requisito['RequitoTratado'])): ?>
	<table cellpadding = "0" cellspacing = "0" class="table table-striped">
	<thead>
	<tr>
		<th><?php echo __('Descricao'); ?></th>
		<th><?php echo __('Tipo Requisito Id'); ?></th>
		<th><?php echo __('Prioridade Id'); ?></th>
		<th class="actions"></th>
	</tr>
	<thead>
	<tbody>
	<?php foreach ($requisito['RequitoTratado'] as $requitoTratado): ?>
		<tr>
			<td><?php echo $requitoTratado['descricao']; ?></td>
			<td><?php echo $requitoTratado['tipo_requisito_id']; ?></td>
			<td><?php echo $requitoTratado['prioridade_id']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-search"></span>'), array('controller' => 'requito_tratados', 'action' => 'view', $requitoTratado['id']), array('escape' => false)); ?>
				<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-edit"></span>'), array('controller' => 'requito_tratados', 'action' => 'edit', $requitoTratado['id']), array('escape' => false)); ?>
				<?php echo $this->Form->postLink(__('<span class="glyphicon glyphicon-remove"></span>'), array('controller' => 'requito_tratados', 'action' => 'delete', $requitoTratado['id']), array('escape' => false), __('Você tem certeza que que deseja deletar %s?', $requitoTratado['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</tbody>
	</table>
<?php endif; ?>

	<div class="actions">
		<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-plus"></span>&nbsp;&nbsp;Adicionar Requisito Tratado'), array('controller' => 'requito_tratados', 'action' => 'add'), array('escape' => false, 'class' => 'btn btn-default')); ?> 
	</div>
	</div><!-- end col md 12 -->
</div>
<div class="related row">
	<div class="col-md-12">
	<h3><?php echo __('Stakeholders'); ?></h3>
	<?php if (!empty($requisito['Stakeholder'])): ?>
	<table cellpadding = "0" cellspacing = "0" class="table table-striped">
	<thead>
	<tr>

		<th><?php echo __('Nome'); ?></th>
		<th><?php echo __('Descricao'); ?></th>
		<th><?php echo __('Nivel Experiencia'); ?></th>
		<th class="actions"></th>
	</tr>
	<thead>
	<tbody>
	<?php foreach ($requisito['Stakeholder'] as $stakeholder): ?>
		<tr>
			<td><?php echo $stakeholder['nome']; ?></td>
			<td><?php echo $stakeholder['descricao']; ?></td>
			<td><?php echo $stakeholder['nivel_experiencia']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-search"></span>'), array('controller' => 'stakeholders', 'action' => 'view', $stakeholder['id']), array('escape' => false)); ?>
				<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-edit"></span>'), array('controller' => 'stakeholders', 'action' => 'edit', $stakeholder['id']), array('escape' => false)); ?>
				<?php echo $this->Form->postLink(__('<span class="glyphicon glyphicon-remove"></span>'), array('controller' => 'stakeholders', 'action' => 'delete', $stakeholder['id']), array('escape' => false), __('Você tem certeza que que deseja deletar %s?', $stakeholder['nome'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</tbody>
	</table>
<?php endif; ?>

	<div class="actions">
		<?php echo $this->Html->link(__('<span class="glyphicon glyphicon-plus"></span>&nbsp;&nbsp;New Stakeholder'), array('controller' => 'stakeholders', 'action' => 'add'), array('escape' => false, 'class' => 'btn btn-default')); ?> 
	</div>
	</div><!-- end col md 12 -->
</div>
